﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace devtm.Configuration
{
    [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public class ConfigurationElementCollectionDesigner : Attribute
    {

        private readonly string _nameProperty;


        /// <summary>
        /// Initializes a new instance of the <see cref="ConfigurationElementCollectionDesigner"/> class.
        /// </summary>
        /// <param name="nameProperty">The name property contains the Element collection.</param>
        public ConfigurationElementCollectionDesigner(string nameProperty)
        {
            this._nameProperty = nameProperty;
        }

        public string NameProperty { get { return _nameProperty; } }
    }
}
